package com.cat.proxy.jdk_proxy;

/**
 * @author cat
 * @version 2025/5/20 20:02
 * @description
 * @since JDK17
 */

public class Client {
    public static void main(String[] args) {
        // 1. 创建代理工厂
        ProxyFactory proxyFactory = new ProxyFactory();
        // 2. 通过代理工厂来获取代理出对象
        SellTickets proxyObject = proxyFactory.getProxyObject();
        // 3. 调用代理对象
        proxyObject.sell();
    }
}
